projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2816d04
)
[XM] Fix get_single_vm bug
author
Tom Wilkie
<tom.wilkie@gmail.com>
Tue, 1 May 2007 10:36:44 +0000
(11:36 +0100)
committer
Tom Wilkie
<tom.wilkie@gmail.com>
Tue, 1 May 2007 10:36:44 +0000
(11:36 +0100)
Stops traceback when given a bad domain name
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
tools/python/xen/xm/main.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xm/main.py
b/tools/python/xen/xm/main.py
index e1053e4e0b0d4d49ec9d99e0425d97101a227b96..1e0d8502e476df591aea6e534f088554a1f8ec88 100644
(file)
--- a/
tools/python/xen/xm/main.py
+++ b/
tools/python/xen/xm/main.py
@@
-567,6
+567,8
@@
def get_single_vm(dom):
if len(uuids) > 0:
return uuids[0]
+ refs = []
+
try:
domid = int(dom)
refs = [vm_ref